<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>任务清单 | To-Do List</title>
    <link rel="stylesheet" href="styles.css">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
</head>
<body>
    <div class="container">
        <header>
            <h1><i class="fas fa-tasks"></i> 我的任务清单</h1>
            <div class="date-display">
                <span id="current-date"></span>
            </div>
        </header>
        
        <main>
            <div class="input-section">
                <div class="input-wrapper">
                    <input type="text" id="task-input" placeholder="添加新任务..." maxlength="100">
                    <button id="add-task" class="add-btn">
                        <i class="fas fa-plus"></i>
                    </button>
                </div>
                <div class="filters">
                    <button class="filter-btn active" data-filter="all">全部</button>
                    <button class="filter-btn" data-filter="active">待完成</button>
                    <button class="filter-btn" data-filter="completed">已完成</button>
                </div>
            </div>
            
            <div class="task-container">
                <ul id="task-list" class="task-list">
                    <!-- 任务列表将通过JavaScript动态生成 -->
                </ul>
                
                <div id="empty-state" class="empty-state">
                    <i class="far fa-calendar-check"></i>
                    <p>暂无任务</p>
                    <span>添加一个任务开始你的清单</span>
                </div>
            </div>
        </main>
        
        <footer>
            <div class="task-stats">
                <span id="task-count">0 个任务</span>
            </div>
            <button id="clear-completed" class="clear-btn">
                清除已完成
            </button>
        </footer>
    </div>
    
    <script src="script.js"></script>
</body>
</html>